package com.xgimi.open.skill.datamanager.domain.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xgimi.open.skill.datamanager.domain.entity.EntryDO;

import java.util.List;

/**
 * @author coderzpw.zhang
 * @description 针对表【entry(词条表)】的数据库操作Service
 * @createDate 2023-04-10 19:26:26
 */
public interface EntryService extends IService<EntryDO> {
    public IPage<EntryDO> pageQuery(IPage<EntryDO> page, EntryDO mapperReq);

    List<EntryDO> listByWordStockId(Long wordStockId);

    EntryDO getByValue(String newValue);

    List<EntryDO> listByWordStockIds(List<Long> wordStockIds);

    List<EntryDO> listByWordStockIdAndValue(Long wordStockId, String value);

    Boolean physicalDeleteByWordStockIds(List<Long> wordStockIds);

    List<EntryDO> queryByWordStockIds(List<Long> wordStockIds);
}
